package com.kfm.base.anno;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

@Student(name = "张三", books = {"高数", "线代"})
public class Demo {

    @Student
    public Demo(){}

    @Student
    private int a;

    @Student("abc")
//    @Student(value = "abc")
    public void test(@Student int b){
        @Student
        int c = 1;
    }

    @Override
    public String toString(){
        return "";
    }
}

//@Target({ElementType.TYPE, ElementType.CONSTRUCTOR})
@Retention(RetentionPolicy.RUNTIME)
@interface Student {

    String value() default "";

    String name() default "";

    String[] books() default {};
}
